﻿user-avatar {
    display: block;
}
section.user-avatar {
    display: flex;
    flex-direction: row;
}
section.user-avatar > div.left {
    position: relative;
    width: 20px;
}
section.user-avatar > div.left div {
    position: absolute;
    left: 2px;
    top: calc(50% - 7px);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: white 2px solid;
    background: #E6E6E6;
}
section.user-avatar > div.left div[data-presence='Available'] {
    background: green;
}
section.user-avatar > div.left div[data-presence='Busy'] {
    background: darkred;
}
section.user-avatar > div.left div[data-presence='MayBeAway'] {
    background: #FBB03B;
}
section.user-avatar > div.left div[data-presence='Unregistered'],
section.user-avatar > div.left div[data-presence='Phone'] {
    background: url('');
    border-radius: 0;
    border: 0;
    left: 1px;
    top: calc(50% - 8px);
    height: 16px;
    width: 16px;
}
section.user-avatar > div.left div[data-presence='Unregistered'] {
    /* Licence: CC Attribution-Noncommercial-No Derivate 3.0 */
    background: url('');
}
user-avatar:not([hide-email]) section.user-avatar > div.left div {
    top: calc(25% - 7px);
}
user-avatar:not([hide-email]) section.user-avatar > div.left div[data-presence='Unregistered'],
user-avatar:not([hide-email]) section.user-avatar > div.left div[data-presence='Phone'] {
    top: calc(25% - 8px);
}
section.user-avatar > div.right {
    flex: 1;
    display: flex;
    flex-direction: column;
}
section.user-avatar > div.right > div {
    flex: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
section.user-avatar > div.right > div.fullname {
    font: 14px "Segoe UI SemiBold";
}
section.user-avatar > div.right > div.email {
    font: 14px "Segoe UI";
}
user-avatar[hide-email] section.user-avatar > div.right > div.email {
    display: none;
}